package com.ruiysoft.entity.order;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author WenJialu
 * @since 2018-10-28
 */
@TableName("order_refund")
public class OrderRefund extends Model<OrderRefund> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("order_id")
    private Long orderId;

    @TableField("order_no")
    private String orderNo;

    @TableField("refund_no")
    private String refundNo;

    @TableField("order_amount")
    private Long orderAmount;

    @TableField("pay_transaction_no")
    private String payTransactionNo;

    @TableField("refund_transaction_no")
    private String refundTransactionNo;

    @TableField("refund_amount")
    private Long refundAmount;

    /**
     * 1 微信
            2 ？
     */
    @TableField("refund_type")
    private Integer refundType;

    /**
     * 1 待商铺确认
            2 商铺已确认 待平台确认
            3 退款中
            4 退款完成
            5 退款失败
     */
    private Integer status;

    @TableField("refund_time")
    private Date refundTime;

    @TableField("update_time")
    private Date updateTime;

    private String message;

    @TableField("operator_id")
    private Long operatorId;

    public Long getId() {
        return id;
    }

    public OrderRefund setId(Long id) {
        this.id = id;
        return this;
    }
    public Long getOrderId() {
        return orderId;
    }

    public OrderRefund setOrderId(Long orderId) {
        this.orderId = orderId;
        return this;
    }
    public String getOrderNo() {
        return orderNo;
    }

    public OrderRefund setOrderNo(String orderNo) {
        this.orderNo = orderNo;
        return this;
    }
    public String getRefundNo() {
        return refundNo;
    }

    public OrderRefund setRefundNo(String refundNo) {
        this.refundNo = refundNo;
        return this;
    }
    public Long getOrderAmount() {
        return orderAmount;
    }

    public OrderRefund setOrderAmount(Long orderAmount) {
        this.orderAmount = orderAmount;
        return this;
    }
    public String getPayTransactionNo() {
        return payTransactionNo;
    }

    public OrderRefund setPayTransactionNo(String payTransactionNo) {
        this.payTransactionNo = payTransactionNo;
        return this;
    }
    public String getRefundTransactionNo() {
        return refundTransactionNo;
    }

    public OrderRefund setRefundTransactionNo(String refundTransactionNo) {
        this.refundTransactionNo = refundTransactionNo;
        return this;
    }
    public Long getRefundAmount() {
        return refundAmount;
    }

    public OrderRefund setRefundAmount(Long refundAmount) {
        this.refundAmount = refundAmount;
        return this;
    }
    public Integer getRefundType() {
        return refundType;
    }

    public OrderRefund setRefundType(Integer refundType) {
        this.refundType = refundType;
        return this;
    }
    public Integer getStatus() {
        return status;
    }

    public OrderRefund setStatus(Integer status) {
        this.status = status;
        return this;
    }
    public Date getRefundTime() {
        return refundTime;
    }

    public OrderRefund setRefundTime(Date refundTime) {
        this.refundTime = refundTime;
        return this;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public OrderRefund setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }
    public String getMessage() {
        return message;
    }

    public OrderRefund setMessage(String message) {
        this.message = message;
        return this;
    }
    public Long getOperatorId() {
        return operatorId;
    }

    public OrderRefund setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OrderRefund{" +
        "id=" + id +
        ", orderId=" + orderId +
        ", orderNo=" + orderNo +
        ", refundNo=" + refundNo +
        ", orderAmount=" + orderAmount +
        ", payTransactionNo=" + payTransactionNo +
        ", refundTransactionNo=" + refundTransactionNo +
        ", refundAmount=" + refundAmount +
        ", refundType=" + refundType +
        ", status=" + status +
        ", refundTime=" + refundTime +
        ", updateTime=" + updateTime +
        ", message=" + message +
        ", operatorId=" + operatorId +
        "}";
    }
}
